home *** CD-ROM | disk | FTP | other *** search
- Path: sun.rhbnc.ac.uk!hal!jim
- From: jim@hal (Jim Hu)
- Newsgroups: comp.lang.c
- Subject: [Q] What error could cause this problem.
- Date: 19 Apr 1996 12:08:13 GMT
- Organization: Royal Holloway, Univ of London
- Message-ID: <4l7vnd$9hq@sun.rhbnc.ac.uk>
- NNTP-Posting-Host: sun1.gl.rhbnc.ac.uk
- X-Newsreader: TIN [version 1.2 PL2]
-
- Hi, there,
-
- I have written a very large program. The program uses
- XVT portability library so I can use it on different system.
- I got the segmentation fault sometime when I run the program.
-
- On SPARC, if I compiled it using SUN cc, the program crashed
- when I try to input data. The program also crashed in the debug
- mode using dbx. crash point was inside the xvt library.
-
- Again on Sparc, If I compiled the program using gcc 2.7.2,
- the program crashed when I do some process on the input. Note
- crashed time was later than using Sun cc. The program run perfect
- fine under debug mode using gdb.
-
- On IRIX 5.3, I used c compiler bought from SGI, the program run
- well without problem.
-
- I understand the problem might be related tp memory allocation.
- Apart from check code line after line, is there any program available
- to attack bugs related memory allocation.
-
-
- Jim Hu
-